﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TaskForm.ascx.cs" Inherits="Application.Controls.TaskForm" %>

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <asp:LinkButton ID="addTask" class="ShowEditForm" runat="server" 
            onclick="addTask_Click">
        Новая задача
        </asp:LinkButton>
        <asp:Panel id="TaskFormDiv" class="EditForm" runat="server"  Visible="false">
            <div class="EditFormTitle">
                Новая задача
            </div>
            <asp:ImageButton class="EditFormClose" src="../images/delete.png" 
            id="ProjectFormClose" runat="server" onclick="ProjectFormClose_Click"  />
            <table>
                <tr>
                    <td>
                        Наименование:
                    </td>
                    <td>
                        <asp:TextBox ID="NewTaskName" runat="server" MaxLength="255"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Описание:
                    </td>
                    <td>
                        <asp:TextBox ID="NewTaskDescription" runat="server" MaxLength="255"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Проект:
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlNewTaskProject" runat="server" >
                        </asp:DropDownList>
                        <%--   <asp:TextBox ID="NewTaskProject" runat="server" MaxLength="255"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr> <td>
                    <asp:DropDownList ID="ddlNewTaskStatus" runat="server">
                    </asp:DropDownList>
                </td>
                </tr>
                <tr>
                    <td>
                        Дата начала:
                    </td>
                    <td>
                        <asp:TextBox ID="NewTaskStartDate" runat="server"></asp:TextBox>
                        <AJAX:CalendarExtender ID="CalendarExtender1" TargetControlID="NewTaskStartDate"
                            runat="server" Format="yyyy.MM.d" Enabled="true">
                        </AJAX:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        Дата окончания:
                    </td>
                    <td>
                        <asp:TextBox ID="NewTaskEndDate" runat="server"></asp:TextBox>
                        <AJAX:CalendarExtender ID="CalendarExtender2" TargetControlID="NewTaskEndDate" runat="server"
                            Format="yyyy.MM.d">
                        </AJAX:CalendarExtender>
                    </td>
                </tr>
                <tr>
                <td>
                    Исполнитель:
                </td>
                <td>
                    <asp:DropDownList ID="ddlNewTaskExecuter" runat="server">
                    </asp:DropDownList>
                </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <%--<input type="button" id="btAddTask"  value="Создать" />--%>
                        <asp:Button ID="btAddTask" Text="Создать" runat="server" OnClick="btAddTask_Click"
                            Class="SubmitEditForm" />
                    </td>
                </tr>
                <asp:Label ID="TaskId" Visible="false" Enabled="false" runat="server"></asp:Label>
            </table>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
